package com.bitcs.accesscontrol.dao.entity;

import java.util.Date;

/**
 * @author gc
 */
public class AccessLogPO {
    private long id;
    private String operationName;
    private String methodName;
    private String exceptionDetail;
    private String params;
    private Date transferTime;
    private String remoteAddr;
    private int remotePort;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getOperationName() {
        return operationName;
    }

    public void setOperationName(String operationName) {
        this.operationName = operationName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getExceptionDetail() {
        return exceptionDetail;
    }

    public void setExceptionDetail(String exceptionDetail) {
        this.exceptionDetail = exceptionDetail;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Date getTransferTime() {
        return transferTime;
    }

    public void setTransferTime(Date transferTime) {
        this.transferTime = transferTime;
    }

    public String getRemoteAddr() {
        return remoteAddr;
    }

    public void setRemoteAddr(String remoteAddr) {
        this.remoteAddr = remoteAddr;
    }

    public int getRemotePort() {
        return remotePort;
    }

    public void setRemotePort(int remotePort) {
        this.remotePort = remotePort;
    }

    @Override
    public String toString() {
        return "AccessLogPO{" +
                "id=" + id +
                ", operationName='" + operationName + '\'' +
                ", methodName='" + methodName + '\'' +
                ", exceptionDetail='" + exceptionDetail + '\'' +
                ", params='" + params + '\'' +
                ", transferTime=" + transferTime +
                ", remoteAddr='" + remoteAddr + '\'' +
                ", remotePort=" + remotePort +
                '}';
    }

    public static class Const {
        /**
         * 非法control_id
         */
        public static int INVALID_CONTROL_ID = -1;
        /**
         * 无异常信息
         */
        public static String STRING_NO_EXCEPTION = "无异常信息";
    }
}
